package com.rv.nats.annotation;

import java.lang.annotation.*;

/**
 * 消息负载数据
 * 例:
 *  {@code
 *       @Publish(topic = "$report.$data.wjzq.v1.alarm.device.{deviceId}")
 *       void publishDeviceAlarm(@PathSubject("deviceId") Long deviceId , @Payload DeviceAlarm deviceAlarm);
 *  }
 *  注意: 当value为null时，key仍然会被序列化，
 * @author suen
 * @time 2023/7/28
 * @description
 **/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.PARAMETER)
@Documented
public @interface Payload {

}
